<!-- $Id: mshop_pay_log_list.htm 14216 2008-03-10 02:27:21Z testyang $ -->

<?php if ($this->_var['full_page']): ?>
<?php echo $this->fetch('pageheader.htm'); ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js,listtable.js')); ?>

<div class="form-div">
  <form action="javascript:searchMshop()" name="searchForm">
    <img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
    <?php echo $this->_var['lang']['user_name']; ?>：<input type="text" name="user_name" size="30" />
    微信订单号：<input type="text" name="keyword" size="30" />
    状态：<select name='status'>
          <option value="" selected="selected">所有情况</option>
          <option value='2'>已成功提现</option>
          <option value='3'>提现失败</option>
          <option value='1'>提现失效</option>
         </select>
    <input type="submit" value="<?php echo $this->_var['lang']['button_search']; ?>" class="button" /> 
  
  </form>

</div>

<form method="post" action="mshop_pay_log.php" name="listForm" onsubmit="return confirm(batch_drop_confirm);">
<!-- start mshop list -->
<div class="list-div" id="listDiv">
<?php endif; ?>

  <table cellpadding="3" cellspacing="1">
    <tr>
      <th>
        <a href="javascript:listTable.sort('log_id'); "><?php echo $this->_var['lang']['log_id']; ?></a><?php echo $this->_var['sort_log_id']; ?></th>
      <th><?php echo $this->_var['lang']['user_name']; ?></th>
      <th>自定义单号</th>
      <th>微信订单号</th>
      <th><?php echo $this->_var['lang']['pay_fee']; ?></th>

      <th><?php echo $this->_var['lang']['ctime']; ?></th>
       <th>支付时间</th>
       <th>备注</th>
    </tr>

    <?php $_from = $this->_var['mshop_pay_log_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'pay_log');if (count($_from)):
    foreach ($_from AS $this->_var['pay_log']):
?>
    <tr>
      <td><?php echo $this->_var['pay_log']['log_id']; ?></td>
      <td align="center"><?php echo htmlspecialchars($this->_var['pay_log']['user_name']); ?>的店铺</td>
      <td align="left"><?php echo htmlspecialchars($this->_var['pay_log']['mch_billno']); ?></td>
      <td align="center"><?php echo htmlspecialchars($this->_var['pay_log']['pay_no']); ?></td>
       <td align="center"><?php echo $this->_var['pay_log']['pay_fee']; ?></td>
       <td align="center"><?php echo htmlspecialchars($this->_var['pay_log']['ctime']); ?></td>
       <td align="center"><?php echo htmlspecialchars($this->_var['pay_log']['pay_time']); ?></td>
       <td align="center"><?php echo htmlspecialchars($this->_var['pay_log']['remark']); ?></td>
    </tr>
    <?php endforeach; else: ?>
    <tr><td class="no-records" colspan="13"><?php echo $this->_var['lang']['no_records']; ?></td></tr>
    <?php endif; unset($_from); ?><?php $this->pop_vars();; ?>
  </table>

  <table cellpadding="4" cellspacing="0">
    <tr>
      <td></td>
      <td align="right"><?php echo $this->fetch('page.htm'); ?></td>
    </tr>
  </table>

<?php if ($this->_var['full_page']): ?>
</div>
<!-- end mshop list -->
</form>

<script type="text/javascript" language="JavaScript">
<!--
  listTable.recordCount = <?php echo $this->_var['record_count']; ?>;
  listTable.pageCount = <?php echo $this->_var['page_count']; ?>;

  <?php $_from = $this->_var['filter']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
  listTable.filter.<?php echo $this->_var['key']; ?> = '<?php echo $this->_var['item']; ?>';
  <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>

  
  onload = function()
  {
    document.forms['searchForm'].elements['user_name'].focus();

    startCheckOrder();
  }

  /**
   * 搜索团购活动
   */
  function searchMshop()
  {

    var user_name = Utils.trim(document.forms['searchForm'].elements['user_name'].value);
	var keyword = Utils.trim(document.forms['searchForm'].elements['keyword'].value);
	var status = Utils.trim(document.forms['searchForm'].elements['status'].value);


    listTable.filter['user_name'] = user_name;
	listTable.filter['keyword'] = keyword;
	listTable.filter['status'] = status;
    listTable.filter['page'] = 1;
    listTable.loadList("mshop_pay_log_list");
  }
  
//-->
</script>

<?php echo $this->fetch('pagefooter.htm'); ?>
<?php endif; ?>